﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
   
    <asp:DataList ID="datalist_Items" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
    
    <ItemTemplate>        
     <div id = "maincontent1">                	
        <div id="img_item">
        
        <img src ='<%#Eval("image_url") %>' />     
         
        </div>
        <div id = "items_details">
            <span class ="name_book"><%#Eval("name") %></span>
            <br />
            <span class ="price_book">$<%#Eval("price") %></span><br /><span class ="notes"><%#Eval("notes") %></span><br /><span class ="button"><a href="#">Details</a> <a href='Shoping_cart.aspx?id=<%#Eval("item_id") %>'>Add to cart</a></span>
        </div>           
    </div>
    </ItemTemplate>    
    <FooterTemplate>

    </FooterTemplate>
    </asp:DataList>

			
</asp:Content>

